unit UListaProf;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, StdCtrls, Buttons, ExtCtrls;

type
  TfrmListaProf = class(TForm)
    Panel2: TPanel;
    BitBtn1: TBitBtn;
    BitBtn4: TBitBtn;
    Edit1: TEdit;
    StringGrid1: TStringGrid;
    BitBtn2: TBitBtn;
    procedure BitBtn4Click(Sender: TObject);
    procedure FormClose(Sender: TObject; var Action: TCloseAction);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmListaProf: TfrmListaProf;

implementation

{$R *.dfm}

procedure TfrmListaProf.BitBtn4Click(Sender: TObject);
begin
  Close;
end;

procedure TfrmListaProf.FormClose(Sender: TObject;
  var Action: TCloseAction);
begin
  frmListaProf.Release;
  frmListaProf := nil;
end;

procedure TfrmListaProf.FormShow(Sender: TObject);
begin
  StringGrid1.Cells[0,0]:='Nome do professor';
  StringGrid1.Cells[0,1]:='Luiz Henrique Elias Bulzoni';
  StringGrid1.Cells[0,2]:='Marcus Vinicios Castro';
  StringGrid1.Cells[0,3]:='Michele Fernanda Costa';
  StringGrid1.Cells[0,4]:='Paula dos Santos ';
end;

end.
